using System.Collections;
using System.Collections.Generic;
using Cinemachine;
using UnityEngine;

public class CameraManager : MonoBehaviour
{
    [SerializeField] private CinemachineConfiner2D confiner2D;
    [SerializeField] private GameObject bounds;
    void Start()
    {
        confiner2D = GetComponent<CinemachineConfiner2D>();
        bounds = GameObject.FindGameObjectWithTag("Bounds");
        if(bounds == null)
            return;
        confiner2D.m_BoundingShape2D = bounds.GetComponent<PolygonCollider2D>();
    }
}
